home *** CD-ROM | disk | FTP | other *** search
- Path: news.cis.nctu.edu.tw!usenet
- From: Hßlfdan Ingvarsson <halfdan@oz.is>
- Newsgroups: comp.lang.c++
- Subject: Visual C++ 4.0 lacking initializers?
- Date: Tue, 23 Jan 1996 08:28:54 +0000
- Organization: OZ Inc.
- Message-ID: <31049C46.A26@oz.is>
- NNTP-Posting-Host: @pc-ast1.oz.is
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b5 (Win95; I)
-
- Is it me or is this sort of code not possible with VC++ 4.0?
-
- // Declarations of class Foo
-
- // VC++ Complains about the line below with the error
- // error C2436: '__ctor' : cannot initialize member functions
- Foo::Foo(void) : Foo::Foo(10) {}
-
- Foo::Foo(x)
- {
- // Some stuff
- }
-
- Tell me about it,
-
- Ciao,
-
- H.
-
- --
- -------------------------------------------------------------------------------Halfdan Ingvarsson, Webmaster/Software Engineer, OZ/Snorrabraut 54/105 Iceland
- WTel: +3545620362, WFax: +3545610362, HTel: +3545644424, E-Mail: halfdan@oz.is
- HomePage: http://www.oz.is/~halfdan, ObQuote: Little things make big thing?
-